package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 用户信息
 * @TableName ap_user_info
 */
@TableName(value ="ap_user_info")
@Data
public class ApUserInfo implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户名称(真实姓名)
     */
    private String realnameName;

    /**
     * 用户性别
     */
    private Integer gender;

    /**
     * 用户年龄
     */
    private Integer age;

    /**
     * 用户身高
     */
    private Double height;

    /**
     * 用户体重
     */
    private Double weight;

    /**
     * 出生年月
     */
    private Date birthdate;

    /**
     * 星座
     */
    private String constellation;

    /**
     * 婚姻状况
     */
    private String maritalStatus;

    /**
     * 自我介绍
     */
    private String selfIntroduction;

    /**
     * 学历
     */
    private String education;

    /**
     * 车产情况
     */
    private String isVehicle;

    /**
     * 房产情况
     */
    private String isHouse;

    /**
     * 用户现住址
     */
    private String presentAddress;

    /**
     * 用户民族
     */
    private String nation;

    /**
     * 用户籍贯
     */
    private String nativePlace;

    /**
     * 用户工作单位
     */
    private String job;

    /**
     * 家庭状态
     */
    private String familyStatus;

    /**
     * 个人照片
     */
    private String personalPhoto;

    /**
     * 工资状况
     */
    private Double salary;

    /**
     * 父母工作
     */
    private String parentJob;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 择偶要求(大概)
     */
    private String mateCriteria;

    /**
     * 审核状态（0未审核/1审核通过/2审核失败）
     */
    private Integer auditStatus;

    /**
     * 软删除资料
     */
    private Integer isDeleted;

    /**
     * 资料发布时间
     */
    private Date releaseTime;

    /**
     * 审核通过时间
     */
    private Date passTime;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 资料修改时间
     */
    private Date updatedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ApUserInfo other = (ApUserInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getRealnameName() == null ? other.getRealnameName() == null : this.getRealnameName().equals(other.getRealnameName()))
            && (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
            && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
            && (this.getHeight() == null ? other.getHeight() == null : this.getHeight().equals(other.getHeight()))
            && (this.getWeight() == null ? other.getWeight() == null : this.getWeight().equals(other.getWeight()))
            && (this.getBirthdate() == null ? other.getBirthdate() == null : this.getBirthdate().equals(other.getBirthdate()))
            && (this.getConstellation() == null ? other.getConstellation() == null : this.getConstellation().equals(other.getConstellation()))
            && (this.getMaritalStatus() == null ? other.getMaritalStatus() == null : this.getMaritalStatus().equals(other.getMaritalStatus()))
            && (this.getSelfIntroduction() == null ? other.getSelfIntroduction() == null : this.getSelfIntroduction().equals(other.getSelfIntroduction()))
            && (this.getEducation() == null ? other.getEducation() == null : this.getEducation().equals(other.getEducation()))
            && (this.getIsVehicle() == null ? other.getIsVehicle() == null : this.getIsVehicle().equals(other.getIsVehicle()))
            && (this.getIsHouse() == null ? other.getIsHouse() == null : this.getIsHouse().equals(other.getIsHouse()))
            && (this.getPresentAddress() == null ? other.getPresentAddress() == null : this.getPresentAddress().equals(other.getPresentAddress()))
            && (this.getNation() == null ? other.getNation() == null : this.getNation().equals(other.getNation()))
            && (this.getNativePlace() == null ? other.getNativePlace() == null : this.getNativePlace().equals(other.getNativePlace()))
            && (this.getJob() == null ? other.getJob() == null : this.getJob().equals(other.getJob()))
            && (this.getFamilyStatus() == null ? other.getFamilyStatus() == null : this.getFamilyStatus().equals(other.getFamilyStatus()))
            && (this.getPersonalPhoto() == null ? other.getPersonalPhoto() == null : this.getPersonalPhoto().equals(other.getPersonalPhoto()))
            && (this.getSalary() == null ? other.getSalary() == null : this.getSalary().equals(other.getSalary()))
            && (this.getParentJob() == null ? other.getParentJob() == null : this.getParentJob().equals(other.getParentJob()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getMateCriteria() == null ? other.getMateCriteria() == null : this.getMateCriteria().equals(other.getMateCriteria()))
            && (this.getAuditStatus() == null ? other.getAuditStatus() == null : this.getAuditStatus().equals(other.getAuditStatus()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
            && (this.getReleaseTime() == null ? other.getReleaseTime() == null : this.getReleaseTime().equals(other.getReleaseTime()))
            && (this.getPassTime() == null ? other.getPassTime() == null : this.getPassTime().equals(other.getPassTime()))
            && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))
            && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getRealnameName() == null) ? 0 : getRealnameName().hashCode());
        result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
        result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
        result = prime * result + ((getHeight() == null) ? 0 : getHeight().hashCode());
        result = prime * result + ((getWeight() == null) ? 0 : getWeight().hashCode());
        result = prime * result + ((getBirthdate() == null) ? 0 : getBirthdate().hashCode());
        result = prime * result + ((getConstellation() == null) ? 0 : getConstellation().hashCode());
        result = prime * result + ((getMaritalStatus() == null) ? 0 : getMaritalStatus().hashCode());
        result = prime * result + ((getSelfIntroduction() == null) ? 0 : getSelfIntroduction().hashCode());
        result = prime * result + ((getEducation() == null) ? 0 : getEducation().hashCode());
        result = prime * result + ((getIsVehicle() == null) ? 0 : getIsVehicle().hashCode());
        result = prime * result + ((getIsHouse() == null) ? 0 : getIsHouse().hashCode());
        result = prime * result + ((getPresentAddress() == null) ? 0 : getPresentAddress().hashCode());
        result = prime * result + ((getNation() == null) ? 0 : getNation().hashCode());
        result = prime * result + ((getNativePlace() == null) ? 0 : getNativePlace().hashCode());
        result = prime * result + ((getJob() == null) ? 0 : getJob().hashCode());
        result = prime * result + ((getFamilyStatus() == null) ? 0 : getFamilyStatus().hashCode());
        result = prime * result + ((getPersonalPhoto() == null) ? 0 : getPersonalPhoto().hashCode());
        result = prime * result + ((getSalary() == null) ? 0 : getSalary().hashCode());
        result = prime * result + ((getParentJob() == null) ? 0 : getParentJob().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getMateCriteria() == null) ? 0 : getMateCriteria().hashCode());
        result = prime * result + ((getAuditStatus() == null) ? 0 : getAuditStatus().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        result = prime * result + ((getReleaseTime() == null) ? 0 : getReleaseTime().hashCode());
        result = prime * result + ((getPassTime() == null) ? 0 : getPassTime().hashCode());
        result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
        result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", realnameName=").append(realnameName);
        sb.append(", gender=").append(gender);
        sb.append(", age=").append(age);
        sb.append(", height=").append(height);
        sb.append(", weight=").append(weight);
        sb.append(", birthdate=").append(birthdate);
        sb.append(", constellation=").append(constellation);
        sb.append(", maritalStatus=").append(maritalStatus);
        sb.append(", selfIntroduction=").append(selfIntroduction);
        sb.append(", education=").append(education);
        sb.append(", isVehicle=").append(isVehicle);
        sb.append(", isHouse=").append(isHouse);
        sb.append(", presentAddress=").append(presentAddress);
        sb.append(", nation=").append(nation);
        sb.append(", nativePlace=").append(nativePlace);
        sb.append(", job=").append(job);
        sb.append(", familyStatus=").append(familyStatus);
        sb.append(", personalPhoto=").append(personalPhoto);
        sb.append(", salary=").append(salary);
        sb.append(", parentJob=").append(parentJob);
        sb.append(", longitude=").append(longitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", mateCriteria=").append(mateCriteria);
        sb.append(", auditStatus=").append(auditStatus);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", releaseTime=").append(releaseTime);
        sb.append(", passTime=").append(passTime);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}